<?php
	if(isset($_REQUEST['authcode'])) {
		session_start();
//		echo $_REQUEST['authcode'];
		if(strtolower($_REQUEST['authcode']) == $_SESSION['authcode']) {
			echo '<font color="#00C">验证正确</font>';
		} else {
			echo '<font color="#C00">验证错误</font>';
		}
		session_destroy();
		exit();
	}
?>
<!DOCTYPE>
<html>
	<head>
		<meta charset="utf-8" />
		<title>验证码验证</title>
	</head>
	<body>
		<form action="form2.php" method="post">
			<!--点图刷新-->
			<p>验证码图片：<img id="code_img" style="cursor:pointer;" src="captcha_img.php" onclick="this.src='captcha_img.php?' + new Date().getTime();" width="200" height="200" border="1"></p>
			
			<p>输入验证码：<input type="text" name="authcode" value="" /></p>
			<p></p><input type="submit" value="提交" style="padding: 6px 20px;" /></p>
		</form>
	</body>
</html>